ifeq ($(TOP_DIR),)
KERNEL_DIR := $(srctree)

EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc

ifeq ($(TARGET_PRODUCT),mini)
	EXTRA_CFLAGS += -fstack-protector-all
endif

obj-m   += drv_fan.o
drv_fan-objs := fan_drv.o
else
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_plat/fandrv
EXTRA_CFLAGS += -fstack-protector-all

obj-m   += drv_fan.o
drv_fan-objs := fan_drv.o

endif